import com.sun.deploy.security.SelectableSecurityManager;

import java.sql.SQLOutput;
import java.util.Random;
import java.util.Scanner;

public class j20230617 {
    //求100-200之间 既能被3整除 也能被4整除的数字 要求：使用continue
    public static void main(String[] args) {
        int i=100;
        while(i<=200) {
            if(i%12!=0){
                i++;
                continue;
            }
            System.out.println(i);
            i++;
        }
    }
    //水仙花数
    public static void main12(String[] args) {
        int count=3;
        for (int i = 100; i <=999 ; i++) {
            int tmp=i;
            double sum=0;
            while(tmp>0){
                sum+=Math.pow(tmp%10,count);
                tmp=tmp/10;
            }
            if(sum==i){
                System.out.println(i);
            }
        }
    }
    //写一个函数返回参数二进制中 1 的个数
    public static void main11(String[] args) {
      int count=0;
      Scanner scanner =new Scanner(System.in);
      int n=scanner.nextInt();
      while(n>0){
          n=n&(n-1);
          count++;
      }
        System.out.println(count);
    }
    //求两个整数的最大公约数
    public static void main10 (String[] args) {
        Scanner scanner=new Scanner(System.in);
        while(scanner.hasNextInt()){
            int num1= scanner.nextInt();
            int num2=scanner.nextInt();
            int tmp=num1 % num2;
            while(tmp>0) {
                num1=num2;
                num2=tmp;
                tmp=num1 % num2;
            }
            System.out.println(num2);
        }


    }
    //获取一个数二进制序列中所有的偶数位和奇数位， 分别输出二进制序列
    public static void main9(String[] args) {
        int n=0;
        Scanner scaner=new Scanner(System.in);
        n= scaner.nextInt();
        for (int i = 31; i >=1; i=i-2) {
            int Odd = n>> i;
            System.out.print(Odd&1);
        }
        System.out.println();
        for (int j = 30; j >=0 ; j=j-2) {
            int even =n>>j;
            System.out.print(even&1);
        }
    }
//输出整数的每一位
    public static void main8(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String key="12345";
        int count=3;
        while(count>0){
            if(count==3) {
                System.out.println("请输入登录密码");
            }
            String scan=scanner.nextLine();
            if(key.equals(scan)){
                System.out.println("密码正确");
                break;
            }
            System.out.println("密码错误");
            if(count>1) {
                System.out.println("请重新输入");
            }
            count--;
        }
        if(count==0) {
            System.out.println("三次密码都输错，退出程序");
        }
}

    public static void main7(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n= scanner.nextInt();
        while(n>0){
            System.out.print(n%10);
            n=n/10;
        }
    }
    //打印x图形
    public static void main6(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int n = scanner.nextInt();
            for (int i = 1; i <= n; i++) {
                //控制层数
                for (int j = 1; j <= n; j++) {
                    //控制每一层
                    if (i == j || i + j == n + 1) {
                        System.out.print("*");
                    } else {
                        System.out.print(" ");
                    }
                }
                System.out.println();
            }
        }
    }




    public static void main4(String[] args) {
        //一到一百出现九的个数
        int count=0;
        for (int n = 1; n <=100 ; n++) {
            if(n%10==9||n/10==9) {
                count++;
            }
        }
        System.out.println(count);
    }

    public static void main3(String[] args) {
        int n = 9;
        int j = 0;
        for (j = 1; j <= 100; j++) {
            int i = 2;
            for (i = 2; i <= Math.sqrt(j); i++) {
                if (j % i == 0) {
                    //System.out.println(j+"不是素数");
                    break;
                }
            }
            if (i > Math.sqrt(j)) {
                System.out.println(j + "素数");
            }
        }
    }

    public static void main2(String[] args) {
        Scanner scan = new Scanner(System.in);
        Random random = new Random();
        int randNum= random.nextInt(50)+50;
        while(true)
        {
            System.out.println("请输入你要猜的数字");
            int num= scan.nextInt();
            if(num<randNum){
                System.out.println("猜小了！");
            } else if (num>randNum) {
                System.out.println("猜大了！");
            } else {
                System.out.println("猜中了！");
                break;
            }
        }
    }

    public static void main1(String[] args) {
        //Scanner a=new Scanner(System.in);
        Scanner scan = new Scanner(System.in);
        int i=0;
        double a=0;
        double sum=0;
        while (scan.hasNextDouble() ) {
             a = scan.nextDouble();
             sum+=a;
            i++;
        }
        double averge=sum/i;
        System.out.println(sum);
        System.out.println(averge);
    }
}



